home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr38
/
cdmx225b.zip
/
CDMX2DOR.MEC
< prev
next >
Wrap
Text File
|
1994-08-14
|
9KB
|
163 lines
[moreoff]
[lightgreen] Hang on a second as I fire up
[lightgreen] The Next Generation CDRom Door!
[pause]
[comment External Program Translation Characters]
[comment When passing a command-line to an external program (and also when]
[comment parsing some special MECCA tokens), Maximus can include]
[comment information about the user and SysOp by using special translation]
[comment tokens. A format token consists of a percent sign and a single,]
[comment case-sensitive letter or symbol. Maximus will interpret the]
[comment character following the percent sign, and replace it with the]
[comment variable which that character represents.]
[comment Maximus currently supports the following external program]
[comment translation characters:]
[comment Char Translation]
[comment %! Embeds a newline in a string.]
[comment %A The user's FIRST name, in upper-case.]
[comment %b The user's baud rate. If the user is a local caller,]
[comment then this will translate to `0'.]
[comment %B The user's LAST name, in upper-case. (If the user has]
[comment no last name, then this will translate into `NLN', `No]
[comment Last Name'.)]
[comment %c The user's city.]
[comment %C The response to the last `menu' MECCA token.]
[comment %d The area number of the current message area]
[comment %D The area number of the current file area]
[comment %e The user's password]
[comment %E The user's screen length, in rows]
[comment %f The user's first name, in mixed case.]
[comment %F Path to the current file area.]
[comment %g User's graphics mode -- `0' for TTY, `1' for ANSI, and]
[comment `2' for AVATAR.]
[comment %G User's Daily DL limit, in kilobytes]
[comment %h The user's phone number.]
[comment %H Number of kilobytes downloaded today]
[comment %i Total downloads]
[comment %I Total uploads]
[comment %j Minutes on-line, this call]
[comment %k The current node's task number. (`0' for no task]
[comment number.)]
[comment %K The current node's task number in hexadecimal format]
[comment padded with leading zero to make it two characters.]
[comment (`0' for no task number.)]
[comment %l The user's last name, in mixed case. If the user has]
[comment no last name, then this will translate into `NLN'.]
[comment %L If the user is REMOTE, this will translate into the]
[comment string `-pX -bY', where X is the port number (1=COM1,]
[comment 2=COM2, etc) and `y' is the baud rate. If the user is]
[comment LOCAL, this will translate into a simple `-k'.]
[comment %m The name of the first file to transfer when invoking an]
[comment external protocol.]
[comment %M Path to the current message area.]
[comment %n User's full name, in mixed case.]
[comment %N The name of your BBS, as defined in MAX.CTL.]
[comment %p The current port number (0=COM1, 1=COM2, etc).]
[comment %P The current port number (1=COM1, 2=COM2, etc).]
[comment %q Path to the current msg area (NO trailing backslash)]
[comment %Q Path to the current file area (NO trailing backslash)]
[comment %r The user's real name, if applicable.]
[comment %R All remaining stacked text, as entered at the last]
[comment menu.]
[comment %s The SysOp's last name, in mixed case. If the SysOp has]
[comment no last name, then this will translate into `NLN'.]
[comment %S The SysOp's first name, in mixed case.]
[comment %t The amount of time the user has left, in minutes.]
[comment %T The amount of time the user has left, in seconds.]
[comment %u The user's user number.]
[comment %U Simply translates to an underscore.]
[comment %v Path to the current upload area (with trailing]
[comment backslash)]
[comment %V Path to the current upload area (NO trailing backslash)]
[comment %w The path to the current FILES.BBS-type file. This]
[comment takes into account the alternate names which may be]
[comment used by the `FileList' option.]
[comment %W The 0 0 0 , as passed via the -s]
[comment command-line parameter.]
[comment %x Drive letter of current drive, in upper case.]
[comment %X The last read message number for the current message]
[comment area. This only works while in a message area.]
[comment %Y The user's current language number, zero based (0 is]
[comment first language, 1 is second, etc.)]
[comment %Z Translates to the user's full name, in caps.]
[comment install the door.sys in the right subdirectory]
[delete]c:\cdbob\door.sys
[open]c:\cdbob\door.sys
[write]COM%P:[comment Com Port ]
[write]%b[comment baud rate]
[write]8[comment Stop Bits]
[write]%k[comment Node # ]
[write]%W[comment Lock baud]
[write]Y[comment Screen Display]
[write]N[comment Printer Toggle]
[write]N[comment Page Bell]
[write]Y[comment Caller Alarm]
[write]%r[comment User's name]
[write]%c[comment User's city]
[write]%h[comment Home phone]
[write]%h[comment Work/data phone]
[write]%e[comment User's password]
[EQ SysOp][write]100[comment 100 / SysOp]
[EQ AsstSysOp][write]80[comment 80 / AsstSysop]
[EQ Clerk][write]70[comment 70 / Clerk]
[EQ Extra][write]60[comment 60 / Extra]
[EQ Favored][write]50[comment 50 / Favored]
[EQ Privil][write]40[comment 40 / Privileged]
[EQ Worthy][write]35[comment 35 / Worthy]
[EQ Normal][write]30[comment 30 / Normal]
[EQ Limited][write]25[comment 25 / Limited]
[EQ Disgrace][write]20[comment 20 / Disgrace]
[EQ Twit][write]5[comment 5 / Twit]
[write]5678[comment # of times on]
[write]10/22/92[comment Date Last Called]
[write]%T[comment Seconds remaining]
[write]%t[comment Minutes remaining]
[colour write]GR[comment 'GR' for graphics]
[endcolour nocolour write]NG[comment 'NG' for TTY]
[endcolour][write]%E[comment Page Length]
[expert write]Y[comment Expert Help mode]
[regular write]N[comment Regular Help mode]
[novice write]N[comment Novice Help mode]
[hotflash write]N[comment Hotflash mode]
[write]1,[comment Conf Req'd In]
[write]0[comment Conf Last In]
[write]12/31/99[comment Expiration Date]
[write]%u[comment User Number]
[write]Z[comment Default Protocol]
[write]%I[comment User's Upload Total]
[write]%i[comment User's Download Total]
[write]0
[write]1234[comment Total Calls from User]
[write]04/32/54[comment User's Birthday]
[write]C:\cdbob[comment Maximus main directory]
[write]C:\MAX\MISC[comment Maximus misc directory]
[write]%S %s[comment Sysop's F/L Name]
[write]
[write]00:00
[write]N
[write]N
[write]Y
[write]14
[write]0
[write]08/02/90
[write]09:21
[write]09:21
[write]99
[write]0
[write]123
[write]456
[write]
[write]1474
[write]2116
[open]Nul[comment And close the file!]
[comment quit comment And we're done! ]
[comment start up cdmx2dor.exe with an extern run to re-read the lastuser.bbs]
[comment xtern_dos @c:\cdbob\cdmx2dgo.bat]
[xtern_erlvl]55 c:\cdbob\cdmx2dgo.bat